package com.example.yoho.mvp.model;

import com.example.lib_core.network.RetrofitManager;
import com.example.yoho.mvp.contract.StrlloContract;
import com.example.yoho.mvp.model.entity.StrlloListEntity;
import com.example.yoho.mvp.model.entity.StrlloSortEntity;

import javax.inject.Inject;

import io.reactivex.Observable;

public class StrlloSortModel implements StrlloContract.Model {
    @Inject
    public StrlloSortModel() {
    }

    @Override
    public Observable<StrlloSortEntity> strlloSortModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).strlloRequest(request);
    }

    @Override
    public Observable<StrlloListEntity> strlloListModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).strlloListRequest(request);
    }

    @Override
    public void onDestory() {

    }
}
